/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package dtd.to.xml;

import java.util.Objects;

/**
 *
 * @author tomas
 */
public class XSDAttribute {
    
    private String name;
    private String xsdInfo;
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getXsdInfo() {
        return xsdInfo;
    }

    public void setXsdInfo(String xsdInfo) {
        this.xsdInfo = xsdInfo;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + Objects.hashCode(this.name);
        hash = 59 * hash + Objects.hashCode(this.xsdInfo);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final XSDAttribute other = (XSDAttribute) obj;
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        if (!Objects.equals(this.xsdInfo, other.xsdInfo)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "XSDAttribute{" + "name=" + name + ", xsdInfo=" + xsdInfo + '}';
    }

    
    
    
}
